package com.imooc.course.test;

import java.io.*;

public class Tset {
    public static void main(String[] args) throws IOException {


            InputStream inputStream = null;
            OutputStream outputStream=null;
            try {
              String   imgurl="D:/home/linyuan"+"/../../../../../../../../../d:/ip.txt";
                inputStream = new BufferedInputStream(new FileInputStream(imgurl));

                byte[] buf = new byte[1024];
                int len;
                while ((len = inputStream.read(buf)) > 0) {

                    System.out.println();
                }

            } catch (Exception e) {
                    e.printStackTrace();
            }finally{
                if(inputStream!=null){
                    inputStream.close();
                }
                if(outputStream!=null){
                    outputStream.close();
                }
            }
        }

}
